{@link ASensorList} is an array of reference to {@link ASensor}.
{@link ASensorRef} is a type for constant pointers to {@link ASensor}.
Sensor Reporting Modes.
Sensor Additional Info Types.
Sensor Direct Channel Type.
Sensor Direct Report Rates.
Sensor accuracy measure.
Sensor types.
Disable the selected sensor.
Enable the selected sensor at default sampling rate.
Retrieve pending events in sensor event queue
Determine if a sensor event queue has pending event to be processed.
Enable the selected sensor with sampling and report parameters
Request that {@link ASENSOR_TYPE_ADDITIONAL_INFO} events to be delivered on the given {@link ASensorEventQueue}.
Sets the delivery rate of events in microseconds for the given sensor.
Configure direct report on channel
Creates a new sensor event queue and associate it with a looper.
Create direct channel based on AHardwareBuffer
Create direct channel based on shared memory
Destroy a direct channel
Destroys the event queue and free all resources associated to it.
Returns the default sensor for the given type, or NULL if no sensor of that type exists.
Returns the default sensor with the given type and wakeUp properties or NULL if no sensor of this type and wakeUp properties exists.
Get a reference to the sensor manager. ASensorManager is a singleton per package as different packages may have access to different sensors.
Get a reference to the sensor manager. ASensorManager is a singleton per package as different packages may have access to different sensors.
Returns the list of available sensors.
Returns the maximum size of batches for this sensor. Batches will often be smaller, as the hardware fifo might be used for other sensors.
Returns the hardware batch fifo size reserved to this sensor.
Returns the sensor's handle.
Get the highest direct rate level that a sensor support.
Returns the minimum delay allowed between events in microseconds. A value of zero means that this sensor doesn't report events at a constant rate, but rather only when a new data is available.
Returns this sensor's name (non localized)
Returns the reporting mode for this sensor. One of AREPORTING_MODE_* constants.
Returns this sensors's resolution
Returns this sensor's string type.
Return this sensor's type
Returns this sensor's vendor's name (non localized)
Test if sensor supports a certain type of direct channel.
Returns true if this is a wake up sensor, false otherwise.
Maximum magnetic field on Earth's surface in uT
Minimum magnetic field on Earth's surface in uT
Structures and functions to receive and process sensor events in native code.
Earth's gravity in m/s^2
{@link ASensorEventQueue} is an opaque type that provides access to {@link ASensorEvent} from hardware sensors.
{@link ASensorManager} is an opaque type to manage sensors and events queues.
A sensor event.
@file sensor.h